package day0608;

public class File5 {
    public static void main(String[] args) {
        //break在某次循环中就结束整个循环
        for (int i=1;  i<=5; i++){
            if(i==3){break;}
            System.out.println(i);
        }//1  2


        //continue：跳过某次循环不执行
        //(下一次还要执行)
        for (int i=1;  i<=5; i++){
            if(i==3){continue;}
            System.out.println(i);
        }//1  2   4

    }
}
